#3、定义一个列表，里面全部存放整数类型，输出列表中的最大值、最小值、和、平均值。
num_lst = [65, 97, 45, 98, 23, 43, 56]
max_num = num_lst[0]
min_num = num_lst[0]
sum_num = 0
for i in num_lst:
    if i > max_num:
        max_num = i
    if i < min_num:
        min_num = i
    sum_num += i
print(f"列表最大值为{max_num}，最小值为{min_num}，和为{sum_num}，平均值为{sum_num/len(num_lst)}")
